package main

import "fmt"

type Weekday int

// enum
const (
	Sun Weekday = iota
	Mon
	Tue
)

func testWeekday(w Weekday) {
	fmt.Println("星期几=", w)
}

func main() {
	testWeekday(Sun)
	testWeekday(Mon)
	var a = 200
	fmt.Printf("%T \n", Weekday(a)+Tue)
}
